package com.epmis.epmis.Service;

import com.epmis.epmis.pojo.*;

import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface ConsoleUserService {
    List<User> getAllUser(int id);

    List<User> getNoDepartmentUser(int id);

    List<User> getDepartmentUser(int enterpriseId,int id);

    int createMember(HashMap<String,Object> map);

    List<EnterpriseUser> getEnterpriseUser(int id);

    boolean addUser(User user);

    boolean updateUser(User user);

    User getUpdateUser(int id);

    boolean addSonDepartment(Department department);

    List<EnterpriseUser> searchEnterpriseUser(String keyword, int id);

    boolean addPost(Post post);

    boolean updatePost(Post post);

    boolean deletePost(int id);

    List<User> getDisableUsers(int id);

    boolean disableUser(String username);

    List<Project> getProjectMessage(int id);

    List<Mission> getMissionMessage(int id);

    List<MissionProject> getMissionProjectMessage(int id);

    List<Target> getTargetMessage(int id);

    List<Hour> getHourMessage(int id);

    List<Cost> getCostMessage(int id);

    List<Examine> getExamineMessage(int id);

    List<ExamineProcess> getExaminProcessMessage(int id);

    boolean deleteProjectById(int id);

    boolean deleteMissionById(int id);

    boolean deleteMissionProjectById(int id);

    boolean deleteTargetById(int id);

    boolean deleteCostById(int id);

    boolean deleteExamineById(int id);

    boolean deleteHourById(int id);

    boolean deleteExamineProcessById(int id);

    List<ExamineProcess> uploadConsoleExcel(File file);

    int enableMember(int id);

    String getConsoleExcel(int id);

    List<Hour> uploadConsoleTimeExcel(File file);

    String getConsoleTimeExcel(int id);

    List<Examine> uploadConsoleExamineExcel(File file);

    String getConsoleExamineExcel(int id);

    String getConsoleCostExcel(int id);

    List<Cost> uploadConsoleCostExcel(File files);

    List<Target> uploadConsoleTargetExcel(File files);

    String getConsoleTargetExcel(int id);

    List<MissionProject> uploadConsoleMissionProjectExcel(File files);

    String getConsoleMissionProjectExcel(int id);

    List<Mission> uploadConsoleMissionExcel(File files);

    String getConsoleMissionExcel(int id);

    List<Project> uploadConsoleProjectExcel(File files);

    String getConsoleProjectExcel(int id);

    boolean deleteByIdList(ArrayList<Integer> idlist, String tablename);

    List<Post> getAllPost(int id);

    int updateMember(HashMap<String, Object> map);
}

